package com.yehuishou.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yehuishou.pojo.Address;
import com.yehuishou.pojo.Erwm;
import com.yehuishou.pojo.Identity;
import com.yehuishou.pojo.User;

public interface UserDao {

	List<User> findBy(@Param("phone")String phone, @Param("state")Integer state);

	List<User> findAll();

	User findById(Integer uid);

	Address findAds(Integer uid);

	Identity findIde(Integer uid);

	void updateU(@Param("uid")Integer uid, @Param("state")Integer state);

	void updateI(@Param("uid")Integer uid, @Param("istate")Integer istate);

	List<User> findByW(@Param("phone")String phone);

	void del(@Param("uid")Integer uid);

	void deli(@Param("uid")Integer uid);

	Erwm findErwm(@Param("uid")Integer uid);
}
